package com.ternnetwork.commons.utils;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

public class PrintWriterUtils {
	
	public static void printString(PrintWriter out, HttpServletResponse response, String content) {
		try{
			response.setContentType("text/javascript");
		    out.print(content);
		}catch(Exception e){
			e.printStackTrace();
			out.print(e.getMessage());
		}
	}

}
